package com.example.JcGQS.pojo.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * @author 末日
 * @ClassName Purchase
 *
 * @Description 采购表
 * @date 2023年11月8日
 */
@Data
public class Purchase {
    /**
     * 采购id
     */
    @TableId(value = "purchase_id", type = IdType.AUTO)
    private Integer purchaseId;

    /**
     * 采购单号
     */
    @TableField(value = "purchase_order")
    private String purchaseOrder;

    /**
     * 采购物品id
     */
    @TableField(value = "purchase_goods_id")
    private Integer purchaseGoodsId;

    /**
     * 项目id
     */
    @TableField(value = "purchase_project_id")
    private Integer purchaseProjectId;

    /**
     * 采购状态
     */
    @TableField(value = "purchase_state")
    private String purchaseState;
    /**
     * 采购备注
     */
    @TableField(value = "purchase_remark")
    private String purchaseRemark;

    /**
     * 申请采购物品数量
     */
    @TableField(value = "purchase_submit_quantity")
    private Integer purchaseSubmitQuantity;

    /**
     * 实际购买物品数量
     */
    @TableField(value = "purchase_pay_quantily")
    private Integer purchasePayQuantily;

    /**
     * 采购物品单价
     */
    @TableField(value = "purchase_unitprice")
    private String purchaseUnitprice;
    /**
     * 实际采购总价
     */
    @TableField(value = "purchase_totall_price")
    private String purchaseTotallPrice;

    /**
     * 采购物品的供应商
     */
    @TableField(value = "purchase_supplier_id")
    private String purchaseSupplierId;

    /**
     * 合同单号
     */
    @TableField(value = "contract_number")
    private String contractNumber;
    /**
     * 订单号
     */
    @TableField(value = "purchase_order_number")
    private String purchaseOrderNumber;

    /**
     * 物流号
     */
    @TableField(value = "purchase_logistics_number")
    private String purchaseLogisticsNumber;

    /**
     * 发票id
     */
    @TableField(value = "purchase_invoice_id")
    private Integer purchaseInvoiceId;

    /**
     * 申购人的用户id
     */
    @TableField(value = "purchase_submit_user_id")
    private Integer purchaseSubmitUserId;

    /**
     * 申购时间
     */
    @TableField(value = "purchase_submit_time")
    private LocalDateTime purchaseSubmitTime;

    /**
     * 审核时间
     */
    @TableField(value = "purchase_review_time")
    private LocalDateTime purchaseReviewTime;

    /**
     * 采购人的用户id
     */
    @TableField(value = "purchase_purchase_user_id")
    private Integer purchasePurchaseUserId;

    /**
     * 个人领取数量
     */
    @TableField(value = "personal_number")
    private Integer personalNumber;

    /**
     * 项目领取数量
     */
    @TableField(value = "number_projects")
    private Integer numberProjects;

    /**
     * 入库数量
     */
    @TableField(value = "quantity_storage")
    private Integer quantityStorage;


    /**
     * 采购时间
     */
    @TableField(value = "purchase_purchase_time")
    private LocalDateTime purchasePurchaseTime;

    /**
     * 逻辑删除 0否 1是
     */
    @TableLogic
    @TableField("purchase_delete")
    private Integer deleteFlag;

    /**
     * 创建时间
     */
    @TableField(value = "purchase_create_time",fill = FieldFill.INSERT)
    private LocalDateTime dataCreateTime;

    /**
     * 更新时间
     */
    @TableField(value = "purchase_update_time",fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime dataUpdateTime;

}
